<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "chindor_bank".
 *
 * @property string $bank_id
 * @property string $name
 * @property integer $create_time
 * @property integer $all_value
 * @property integer $all_gold
 * @property double $all_cost
 */
class Bank extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'chindor_bank';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['create_time', 'all_value', 'all_gold'], 'integer'],
            [['all_cost'], 'number'],
            [['name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'bank_id' => 'Bank ID',
            'name' => 'Name',
            'create_time' => 'Create Time',
            'all_value' => 'All Value',
            'all_gold' => 'All Gold',
            'all_cost' => 'All Cost',
        ];
    }
}
